package create_pattern.factory.simple_factory;

import lombok.extern.slf4j.Slf4j;

/**
 * @author fly
 * @data 2022-03-29
 * 测试类
 */
@Slf4j
public class TestMain {
    public static void main(String[] args) {
        Pen pen = PenFactory.getPen("coloredPen");
        System.out.println("组成：");
        pen.composition();

    }
}